KindEditor.ready(function(K) {
	editor = K.create('textarea[data-kind="true"]', {
		allowFileManager : true,
		afterBlur: function(){this.sync();},
		filterMode:false,
		width : '80%',
		height : 300,
		resizeType : 0,
		uploadJson : '/adminiii.php/kind_upload/upload',
		fileManagerJson : '/adminiii.php/kind_upload/file_manager',
		items : [
			'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'cut', 'copy', 'paste',
			'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
			'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
			'superscript', 'clearhtml', 'selectall', '|', 'fullscreen', '/',
			'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
			'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image',
			'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
			'anchor', 'link', 'unlink'
		]
	});
});